<template>
  <mescroll
    class="list-draw"
    @mescrollInit="init"
    :upAuto="!hasInit && actived"
  >
    <div style="padding: 0 16px; background: white">
      <DynamicItem
        v-for="(item, index) in dynamicList"
        :info="item"
        :key="index"
      ></DynamicItem>
    </div>
  </mescroll>
</template>

<script>
import Mescroll from 'lottery/components/Mescroll/Mescroll';
import { DynamicItem } from '@/components/DynamicMessage/index';

export default {
  name: 'VueJiangduoduoComPayAttentionTo',
  props: {
    type: {
      type: [String, Number],
      required: true,
    },
    actived: {
      type: Boolean,
      default: false,
    },
  },
  components: { Mescroll, DynamicItem },
  data() {
    return {
      hasInit: false,
      dynamicList: [

        {
          ipAddress: '新疆',
          shortTime: '03-03 14:51',
          content: '明明后区篮球🏀定9了，最后还是还得14，大腿都拍红了',
          likeCount: 3,
          replyCount: 24,
          imgList: [
            {
              originImg: 'http://img.caihongduoduo.com/2023-03-02/a868a9f7-4918-43f1-8c33-2ab98600855d1677765117914.jpg?width=1125&height=434',
              thumbImg: 'https://f.caihongduoduo.com/icon/32cee8c0-6fa5-49c5-a960-74d46d6aa96e2732229170006208034.jpg?width=600&height=231',
            },
          ],
          isLike: 1,
          userInfo: {
            faceUrl:
              'https://f.caihongduoduo.com/2022/08/28/931F8BA224E17758847AE8FB31A966EF.jpg',
            nickName: '老许先生',
          },
        },
        {
          ipAddress: '广东',
          shortTime: '03-03 14:51',
          content: '\n兄弟门：我要开始放大招了！\n本期重点内容：\n\n0区6-7-8标准走势，1区有可能出现多连号，\n\n2区重点关注23.24姐妹号（26号冷号复出）\n\n\n前后区开奖比率：\n前区11-13码    后区7-9码\n\n虽然只中了个安慰奖，别急，明天大奖还在等着呢！',
          likeCount: 30,
          replyCount: 20,
          imgList: [
            {
              originImg: 'http://img.caihongduoduo.com/2023-03-02/62371853-0fdc-4dc8-a8d0-0ceb78e6455c1677769636662.jpg?width=1080&height=2408',
              thumbImg: 'https://f.caihongduoduo.com/icon/b1f59fbf-248c-49e4-a230-6c8f605111ad1119612932369502287.jpg?width=540&height=1204',
            },
            {
              originImg: 'http://img.caihongduoduo.com/2023-03-02/dda17166-dd18-4b25-891f-9b22d24a442f1677769636618.jpg?width=1080&height=2408',
              thumbImg: 'https://f.caihongduoduo.com/icon/775ca233-93e3-4866-916c-23633b4734554863471892303823277.jpg?width=540&height=1204',
            },
            {
              originImg: 'http://img.caihongduoduo.com/2023-03-02/d472f993-65c1-4249-8c44-aaf96ed1ce351677769717753.jpg?width=1672&height=2472',
              thumbImg: 'https://f.caihongduoduo.com/icon/a4a11059-1208-40ff-9751-b11f2b12155d208907504331562577.jpg?width=836&height=1236',
            },
            {
              originImg: 'http://img.caihongduoduo.com/2023-03-02/bf9a40a8-cc20-46d4-af6d-f3894c168b7c1677769800009.jpg?width=1080&height=1336',
              thumbImg: 'https://f.caihongduoduo.com/icon/4506983f-9ca2-4c65-82c7-cab17ae47ae2198609616744825448.jpg?width=485&height=600',
            },
          ],
          isLike: 0,
          userInfo: {
            faceUrl:
              'https://f.caihongduoduo.com/2023/03/03/54A576A9934DA3FCA3C7481F3B0EE47D.jpg',
            nickName: '奖來樂',
          },
        },
      ],
    };
  },

  mounted() {},

  methods: {
    async init(cb) {
      console.log('🚀 ~ file: national.vue:38 ~ init ~ cb:', cb);
      this.hasInit = true;

      try {
        /* empty */
      } catch (error) {
        /* empty */
      } finally {
        cb(false);
      }
    },
  },
};
</script>

<style lang="scss" scoped></style>
